﻿@using DevExpress.Web.Mvc.UI
@using DevExpress.XtraReports.UI

@Html.DevExpress().ReportViewer(settings =>
{
    // The following settings are necessary for a Report Viewer. 
    settings.Name = "reportViewer";
    settings.LoadingPanelText = "Dữ liệu đang tải về, vui lòng chờ đợi";
    settings.Report = (XtraReport)ViewData["Report"];
    // Callback and export route values specify corresponding controllers and their actions. 
    // These settings are necessary as well. 
    settings.CallbackRouteValues = new { Controller = @Model, Action = "ReportViewerPartial" };
    settings.ExportRouteValues = new { Controller = @Model, Action = "ExportReportViewer" };    
}).GetHtml()